package com.relytosoft.mizar.media.analyze.api.entity.system;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 人的基本信息
 *
 * @author lj
 * @date 2022/5/12 9:07
 */
@TableName("AY_PERSON_INFO")
@ApiModel("AyPersonInfo")
public class AyPersonInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @TableField("NAME")
    private String name;

    /**
     * 性别;0男 1女
     */
    @ApiModelProperty(value = "性别;0男 1女")
    @TableField("SEX")
    private Integer sex;

    /**
     * 民族
     */
    @ApiModelProperty(value = "民族")
    @TableField("ETHIC_CODE")
    private String ethicCode;

    /**
     * 证件种类;1:身份证，2:驾驶证
     */
    @ApiModelProperty(value = "证件种类;1:身份证，2:驾驶证")
    @TableField("ID_TYPE")
    private Integer idType;

    /**
     * 证件号码
     */
    @ApiModelProperty(value = "证件号码")
    @TableField("ID_NUMBER")
    private String idNumber;

    /**
     * 是否涉案人员;0:否1:是，2:不确定
     */
    @ApiModelProperty(value = "是否涉案人员;0:否1:是，2:不确定")
    @TableField("IS_CRIMINAL_INVOLVED")
    private Integer isCriminalInvolved;

    /**
     * 政治面貌;0:群众，1:团员，2:党员
     */
    @ApiModelProperty(value = "政治面貌;0:群众，1:团员，2:党员")
    @TableField("POLITICAL_APPEARANCE")
    private Integer politicalAppearance;

    /**
     * 学历水平;0:研究生，1:大学本科，2:大专，3:中专，4:高中，5:初中以下，6:文盲或半文盲
     */
    @ApiModelProperty(value = "学历水平;0:研究生，1:大学本科，2:大专，3:中专，4:高中，5:初中以下，6:文盲或半文盲")
    @TableField("EDUCATION")
    private Integer education;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    @TableField("PHONE")
    private String phone;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址")
    @TableField("ADDRESS")
    private String address;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;

    /**
     * 三方人像ID
     */
    @ApiModelProperty(value = "三方人像ID")
    @TableField("PLATFORM_PERSON_ID")
    private String platformPersonId;

    @TableField(exist = false)
    private Integer groupId;

    @TableField(exist = false)
    private List<Integer> groupIds;

    @TableField(exist = false)
    private String imageUrl;

    @TableField(exist = false)
    private String idTypeString;

    @TableField(exist = false)
    private String educationString;

    /**
     * 图片ID
     */
    @ApiModelProperty(value = "图片ID")
    @TableField(exist = false)
    private Integer imageId;


    public AyPersonInfo() {
    }

    public AyPersonInfo(Integer status) {
        this.status = status;
    }

    public Integer getImageId() {
        return imageId;
    }

    public void setImageId(Integer imageId) {
        this.imageId = imageId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public List<Integer> getGroupIds() {
        return groupIds;
    }

    public void setGroupIds(List<Integer> groupIds) {
        this.groupIds = groupIds;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getIdTypeString() {
        return idTypeString;
    }

    public void setIdTypeString(String idTypeString) {
        this.idTypeString = idTypeString;
    }

    public String getEducationString() {
        return educationString;
    }

    public void setEducationString(String educationString) {
        this.educationString = educationString;
    }

    /**
     * 获得主键
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获得姓名
     */
    public String getName() {
        return this.name;
    }

    /**
     * 设置姓名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获得性别;0男 1女
     */
    public Integer getSex() {
        return this.sex;
    }

    /**
     * 设置性别;0男 1女
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * 获得民族
     */
    public String getEthicCode() {
        return this.ethicCode;
    }

    /**
     * 设置民族
     */
    public void setEthicCode(String ethicCode) {
        this.ethicCode = ethicCode;
    }

    /**
     * 获得证件种类;1:身份证，2:驾驶证
     */
    public Integer getIdType() {
        return this.idType;
    }

    /**
     * 设置证件种类;1:身份证，2:驾驶证
     */
    public void setIdType(Integer idType) {
        this.idType = idType;
    }

    /**
     * 获得证件号码
     */
    public String getIdNumber() {
        return this.idNumber;
    }

    /**
     * 设置证件号码
     */
    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    /**
     * 获得是否涉案人员;0:否1:是，2:不确定
     */
    public Integer getIsCriminalInvolved() {
        return this.isCriminalInvolved;
    }

    /**
     * 设置是否涉案人员;0:否1:是，2:不确定
     */
    public void setIsCriminalInvolved(Integer isCriminalInvolved) {
        this.isCriminalInvolved = isCriminalInvolved;
    }

    /**
     * 获得政治面貌;0:群众，1:团员，2:党员
     */
    public Integer getPoliticalAppearance() {
        return this.politicalAppearance;
    }

    /**
     * 设置政治面貌;0:群众，1:团员，2:党员
     */
    public void setPoliticalAppearance(Integer politicalAppearance) {
        this.politicalAppearance = politicalAppearance;
    }

    /**
     * 获得学历水平;0:研究生，1:大学本科，2:大专，3:中专，4:高中，5:初中以下，6:文盲或半文盲
     */
    public Integer getEducation() {
        return this.education;
    }

    /**
     * 设置学历水平;0:研究生，1:大学本科，2:大专，3:中专，4:高中，5:初中以下，6:文盲或半文盲
     */
    public void setEducation(Integer education) {
        this.education = education;
    }

    /**
     * 获得联系电话
     */
    public String getPhone() {
        return this.phone;
    }

    /**
     * 设置联系电话
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获得详细地址
     */
    public String getAddress() {
        return this.address;
    }

    /**
     * 设置详细地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获得备注
     */
    public String getRemark() {
        return this.remark;
    }

    /**
     * 设置备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获得状态
     */
    public Integer getStatus() {
        return this.status;
    }

    /**
     * 设置状态
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获得三方人像ID
     */
    public String getPlatformPersonId() {
        return this.platformPersonId;
    }

    /**
     * 设置三方人像ID
     */
    public void setPlatformPersonId(String platformPersonId) {
        this.platformPersonId = platformPersonId;
    }

    @Override
    public String toString() {
        return "AyPersonInfo{id=" + id +
                ",name=" + name +
                ",sex=" + sex +
                ",ethicCode=" + ethicCode +
                ",idType=" + idType +
                ",idNumber=" + idNumber +
                ",isCriminalInvolved=" + isCriminalInvolved +
                ",politicalAppearance=" + politicalAppearance +
                ",education=" + education +
                ",phone=" + phone +
                ",address=" + address +
                ",remark=" + remark +
                ",status=" + status +
                ",platformPersonId=" + platformPersonId +
                ",createdId=" + createdId +
                ",createdBy=" + createdBy +
                ",createdTime=" + createdTime +
                ",updatedId=" + updatedId +
                ",updatedBy=" + updatedBy +
                ",updatedTime=" + updatedTime +
                "}";
    }
}